
<h3><img src="<?php echo base_url(); echo "/application/images/relic/search.png"; ?>" width="30px" height="30px" align="left"/>Search a Resident</h3>
<div id="content">
	
	<h3><a href="#section1">Current Residents</a></h3>
	<div>
	
		<table border="1" class="centeredtable">
			<tr class="centeredtext">
				<th>Student Number</th>
				<th>First Name</th>
				<th>Middle Name</th>
				<th>Last Name</th>
			</tr>
			
			<?php foreach($query->result() as $row): ?>
			<tr class="centeredtext">
				<td width="150">
					<a href="<?php echo base_url();?>index.php/residentController/loadSearchResidentView/<?php echo $row->student_number;?>">
						<?php echo $row->student_number;?>
					</a>
				</td>
				<td width="150"><?php echo $row->first_name;?></td>
				<td width="150"><?php echo $row->middle_name;?></td>
				<td width="150"><?php echo $row->last_name;?></td>
			</tr>
			<?php endforeach;?>
		</table>
			<?php echo $paginator;?>
	</div>
	
	<h3><a href="#section1">Search</a></h3>
	<form name="searchform" method="post" onSubmit="return OnSubmitForm();">
	<table class="centeredtable">
		<tr><td width="120px"></td><td width="300px"></td></tr>
		<tr><td>Student Number:</td><td><input type="text" class="longobject" name="student_number"/></td></tr>
	</table>
	<br/>
	<input type="reset" value="Reset" class="shortobject"/>
	<input type="submit" value="Search Resident" class="shortobject" onClick="document.pressed=this.value"/>
	<input type="submit" value="Back to Main" class="shortobject" onClick="document.pressed=this.value"/>
	</form>
	
</div><!-- End content -->
